package com.ccrfid.rmc6.entity.device;

import java.util.Arrays;

public class CardDownLinkEntity {
    private Long cardNumber;
    private String tag;
    private String[] msg;
    private Integer tagType;

    private Integer downLinkType;

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String[] getMsg() {
        return msg;
    }

    public void setMsg(String[] msg) {
        this.msg = msg;
    }

    public Integer getTagType() {
        return tagType;
    }

    public void setTagType(Integer tagType) {
        this.tagType = tagType;
    }

    public String msgToString(){
        String msg = "";
       for (int i = 0;i< this.getMsg().length;i++){
           msg.concat(this.msg[i]);
       }
       return msg;
    }

    @Override
    public String toString() {
        return "CardDownLinkEntity{" +
                "tag='" + tag + '\'' +
                ", msg=" + Arrays.toString(msg) +
                ", tagType=" + tagType +
                '}';
    }

    public Integer getDownLinkType() {
        return downLinkType;
    }

    public void setDownLinkType(Integer downLinkType) {
        this.downLinkType = downLinkType;
    }
}
